package sentData;

import java.io.Serializable;

public class Vote implements Serializable {

	private static final long serialVersionUID = -4513949756810249152L;

	public Vote(int vote, String voter, Lecture lecture) {
		super();
		this.vote = vote;
		this.voter = voter;
		this.lecture = lecture;
	}

	private int vote;
	private String voter = "anonymous";
	private Lecture lecture;

	public Lecture getLecture() {
		return lecture;
	}

	public void setLecture(Lecture lecture) {
		this.lecture = lecture;
	}

	public String toString() {
		return "vote: " + vote + " " + voter;
	}

	public int getVote() {
		return vote;
	}

	public String getVoter() {
		return voter;
	}

	public void setVoter(String voter) {
		this.voter = voter;
	}

	public void setVote(int vote) {
		this.vote = vote;
	}

}
